<template>
      <div class="car-box">
      <div class="p1">
        <slot name="title"></slot>
        </div>
      <div class="pic">
        <slot name="pic"></slot>
        
      </div>
      <div class="p2">
        <slot name="carname"></slot>
        <slot name="price"></slot>
      </div>
      <div class="mask">
        <div><slot name="link1"></slot></div>
        <div><slot name="link2"></slot></div>
      </div>
    </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.car-box {
  width: 380px;
  height: 200px;
  margin-bottom: 30px;
  position: relative;
  .p1 {
    position: absolute;
    left: 20px;
    top: 20px;
    p {
      color: #b4b4b6;
      font-size: 36px;
    }
  }
  .pic {
    width: 387px;
    height: 100px;
    text-align: right;
    img {
      height: 100px;
      margin-top: 40px;
      margin-right: 40px;
    }
  }
  .p2 {
    display: flex;
    padding: 0 30px;
    justify-content: space-between;
    color: #626262;
    margin-top: 50px;
  }
  .mask {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 387px;
    height: 200px;
    box-sizing: border-box;
    padding: 35px 0;
    background-color: rgba(255, 255, 255, 0.9);
    div {
      width: 100%;
      text-align: center;
      margin-top: 30px;
      a {
        color: #626262;
      }
      a:hover {
        color: #000;
      }
    }
  }
}
.car-box:hover .mask {
  display: block;;
}
</style>